#!/bin/bash
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
./configure --without-curl --enable-static LDFLAGS=-static
cat README.CURL
sed -i 's/^CPPFLAGS =/CPPFLAGS = -DCURL_STATICLIB/g' src/Makefile
sed -i 's/^LDADD =/LDADD = -lcurl -L\/usr\/lib -lssh2 -lssl -lcrypto -lz/g' src/Makefile
make clean
make
